package com.kocel.block.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class ViewRowMapper implements RowMapper<smelt_pouring_history> {
    @Override
    public smelt_pouring_history mapRow(ResultSet rs, int rowNum) throws SQLException {
        smelt_pouring_history t = new smelt_pouring_history();
        t.setCustomName(rs.getString("customName"));
        t.setFurnaceCode(rs.getString("furnaceCode"));
        t.setGradeNum(rs.getString("gradeNum"));
        t.setPacketCode(rs.getString("packetCode"));
        t.setPieceNo(rs.getString("pieceNo"));
        t.setPlanActualEndTime(rs.getString("planActualEndTime"));
        t.setPlanEndTime(rs.getString("planEndTime"));
        t.setPlanNums(rs.getString("planNums"));
        t.setPouringSite(rs.getString("pouringSite"));
        t.setPouringWeight(rs.getString("pouringWeight"));
        t.setProductCode(rs.getString("productCode"));
        t.setProductName(rs.getString("productName"));
        t.setSandBoxNo(rs.getString("sandBoxNo"));
        t.setSandBoxNu(rs.getString("sandBoxNu"));
        t.setTechnology(rs.getString("technology"));
        t.setTexture(rs.getString("texture"));
        t.setWeight(rs.getString("weight"));
        return t;
    }
}
